<?php
/**
 * Created by XM·Tan.
 * Motto: Who shuts love out, in turn shall be shut out from love.
 * Date: 2021/3/23 22:57
 */

namespace app\admin\validate;


use think\Validate;

class AdminRole extends Validate {

    protected $rule = [
        'rolename' => 'require|token',
        'id' => 'require'
    ];

    protected $message = [
        'rolename' => '请输入角色名称',
        'id'  =>  '参数错误'
    ];

    protected $scene = [
        'insert'  =>  ['rolename'],
        'update'  =>  ['rolename'],
        'auth'    =>  ['id']
    ];


}